package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc PrincipalInductionIdDto
 * @使用场景
 */
@Data
public class PrincipalInductionIdDto extends BaseDto implements Serializable {

  /**
   * 就职记录ID
   */
  @ApiModelProperty("就职记录ID")
  private String inductionRecordId;

  /**
   * 真实姓名
   */
  @ApiModelProperty("真实姓名")
  private String idCardName;

  /**
   * 接收部门ID
   */
  @ApiModelProperty("接收部门ID")
  private String receiveSubjectId;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    PrincipalInductionIdDto that = (PrincipalInductionIdDto) o;
    return (
      inductionRecordId == that.inductionRecordId &&
      idCardName == that.idCardName &&
      receiveSubjectId == that.receiveSubjectId
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      inductionRecordId,
      idCardName,
      receiveSubjectId
    );
  }

}
